home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 November / PCWNOV08.iso / Software / Freeware / Mini Map Sidebar 0.3 / mini_map_sidebar-0.3.0-fx.xpi / chrome / content / minimap.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-07-11  |  19.8 KB  |  347 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://minimap/skin/maps.css" type="text/css"?>
  4. <!DOCTYPE page SYSTEM "chrome://minimap/locale/minimap.dtd">
  5.  
  6. <window id="sbminimap" title="&minimap.title;" onload="initMaps(); mapHome();" onunload="closeMaps();" 
  7.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
  8.  
  9.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js" />
  10.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js" />
  11.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js" />
  12.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js" /> 
  13.   <script type="application/x-javascript" src="chrome://browser/content/browser.js" /> 
  14.   <script type="application/x-javascript" src="chrome://minimap/content/rdfds.js" />
  15.   <script type="application/x-javascript" src="chrome://minimap/content/tree.js" />
  16.   <script type="application/x-javascript" src="chrome://minimap/content/import.js" />
  17.   <script type="application/x-javascript" src="chrome://minimap/content/export.js" />
  18.   <script type="application/x-javascript" src="chrome://minimap/content/maps.js" />
  19.   <script type="application/x-javascript" src="chrome://minimap/content/json.js" />
  20.   <script type="application/x-javascript" src="chrome://minimap/content/services.js"/>
  21.  
  22.  
  23.   <popupset>
  24.     <menupopup id="mapsContext"><!--{{{-->
  25.       <menuitem label="&menuitem.map.options;" oncommand="myOptions();" />
  26.       <menuitem label="&menuitem.setMapHome;" oncommand="setMapHome();" />
  27.       <menuitem label="&menuitem.setStartAddress;" oncommand="setStartAddress();" />
  28.       <menuitem label="&menuitem.about.accuracy;" oncommand="aboutAccuracy();" />     
  29.       <menuseparator />
  30.       <menu label="&menuitem.address.directions.to;">
  31.           <menupopup>
  32.               <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-to');" /> 
  33.               <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-to');" /> 
  34.               <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-to');" /> 
  35.           </menupopup>
  36.       </menu>
  37.       <menu label="&menuitem.address.directions.from;">
  38.           <menupopup>
  39.               <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-from');" /> 
  40.               <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-from');" /> 
  41.               <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-from');" /> 
  42.           </menupopup>
  43.       </menu>
  44.       <menu label="&menuitem.directions.to.my.address;">
  45.           <menupopup>
  46.               <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-to-my');" /> 
  47.               <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-to-my');" /> 
  48.               <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-to-my');" />
  49.               <menuitem label="&menuitem.address.service.preview;" oncommand="previewAddressService('preview-to','address');" /> 
  50.           </menupopup>
  51.       </menu>    
  52.       <menu label="&menuitem.directions.from.my.address;">
  53.           <menupopup>
  54.               <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-from-my');" /> 
  55.               <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-from-my');" /> 
  56.               <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-from-my');" /> 
  57.               <menuitem label="&menuitem.address.service.preview;" oncommand="previewAddressService('preview-from','address');" /> 
  58.           </menupopup>
  59.       </menu>
  60.       <menuseparator />
  61.       <menu label="&menuitem.tagzania;">
  62.           <menupopup>
  63.               <menuitem label="&menuitem.tagzania.post;" oncommand="openAddressService('tagzania-post');" />
  64.               <menuitem label="&menuitem.tagzania.nearby;" oncommand="openAddressService('tagzania-nearby');" />    
  65.           </menupopup>
  66.       </menu>
  67.       <menu label="&menuitem.platial;">
  68.           <menupopup>
  69.               <menuitem label="&menuitem.platial.places;" oncommand="openAddressService('platial-places');" />
  70.               <menuitem label="&menuitem.platial.places.grab;" oncommand="openAddressService('platial-add');" />
  71.           </menupopup>
  72.       </menu>
  73.       <menuseparator />
  74.       <menu label="&menuitem.address.view.share;">
  75.           <menupopup>
  76.                   <menuitem label="&menuitem.export.kml;" oncommand="exportMaps('kmlsel');" />
  77.                   <menuitem label="&menuitem.export.csv;" oncommand="exportMaps('csvsel');" />
  78.                   <menuitem label="&menuitem.export.gpx;" oncommand="exportMaps('gpxsel');" />
  79.                   <menuitem label="&menuitem.export.minimap;" oncommand="exportMaps('minimapsel');" />
  80.               <menuitem label="&menuitem.address.view.latlng;" oncommand="shareLocation('latlng');" />
  81.               <menuitem label="&menuitem.address.view.latlng.html;" oncommand="shareLocation('html');" />
  82.               <menuitem label="&menuitem.address.view.link;" oncommand="shareLocation('link');" />
  83.               <menuitem label="&menuitem.address.view.email;" oncommand="shareLocation('email');" />
  84.               <menuitem label="&menuitem.address.view.site;" oncommand="openMinimapEmbed();" />
  85.           </menupopup>
  86.       </menu>
  87.       <!--menuseparator /-->
  88.       <menu label="&menuitem.address.view.location;">
  89.           <menupopup>
  90.               <!--menuitem label="&menuitem.openmaptab;" oncommand="openAddressService('map-tab');" /-->
  91.               <menuitem label="&menuitem.view.in.google.earth;" oncommand="openAddressService('google-earth');" />
  92.               <menuitem label="Flickr" oncommand="openAddressService('flickr');" />
  93.               <menuitem label="Panoramio" oncommand="openAddressService('panoramio');" />
  94.               <menuitem label="&menuitem.view.in.geody;" oncommand="openAddressService('geody');" />
  95.               <menuitem label="&menuitem.view.in.localize;" oncommand="openAddressService('localize');" />
  96.               <menuitem label="&menuitem.view.in.geonames;" oncommand="openAddressService('geonames');" />
  97.               <menuitem label="&menuitem.view.in.geourl;" oncommand="openAddressService('geourl');" />
  98.               <menuitem label="&menuitem.view.in.google;" oncommand="openAddressService('google');" />
  99.               <menuitem label="&menuitem.view.in.yahoo;" oncommand="openAddressService('yahoo');" />
  100.               <menuitem label="&menuitem.view.in.microsoft;" oncommand="openAddressService('microsoft');" />
  101.           </menupopup>
  102.       </menu>
  103.       <menu label="&menuitem.address.view.nearby.about;">
  104.           <menupopup>
  105.             <menu label="&menuitem.address.view.upcoming;">
  106.                   <menupopup id="upcoming">
  107.                   </menupopup>
  108.               </menu>
  109.               <menu label="&menuitem.address.view.amazon;">
  110.                   <menupopup id="amazon">    
  111.                   </menupopup>
  112.               </menu>
  113.             <menu label="&menuitem.address.view.ebay;">
  114.                   <menupopup id="ebay">    
  115.                   </menupopup>
  116.             </menu>
  117.             <menu label="&menuitem.address.view.maps.com;">
  118.                   <menupopup id="mapscom">    
  119.                   </menupopup>
  120.               </menu>
  121.           </menupopup>
  122.       </menu>
  123.       <menuseparator />
  124.       <menuitem label="&menuitem.delete;" oncommand="delete_address();" />
  125.       <menuitem label="&menuitem.properties;" oncommand="edit_address();" />
  126.       <menuitem label="&menuitem.openurl;" oncommand="openAddressService('self');" /> 
  127.       </menupopup><!--}}}-->
  128.    </popupset>
  129.  
  130.   
  131.     <popupset>
  132.       <menupopup id="kmlContext"><!--{{{-->
  133.         <menuitem label="&minimap.kml.delete;" oncommand="delete_Kml()" />
  134.         <menuitem label="&minimap.kml.edit;" oncommand="edit_Kml()" />
  135.         <menuitem label="&minimap.kml.google.earth;" oncommand="googleEarthKml()" />
  136.         <menuitem label="&minimap.kml.embed;" oncommand="embed_Kml()" />
  137.       </menupopup><!--}}}-->
  138.     </popupset>
  139.  
  140.   <vbox flex="1" ondragover="nsDragAndDrop.dragOver(event,mapsObserver)" ondragdrop="nsDragAndDrop.drop(event,mapsObserver)" style="margin: 0px; padding: 0px; background-color: #555555; color: white;" >
  141.     <hbox id="flock-maps-topbar-toolbar" style="margin: 0px; padding: 5px; background-color: #efeff2; color: white;" >
  142.         <toolbarbutton id="myoptions" class="geobut" label="" tooltiptext="&menuitem.map.tools.tooltip;" type="menu" >
  143.             <menupopup>
  144.                     <menu label="&menuitem.options.import;" tooltiptext="&menuitem.options.import;">
  145.                     <menupopup>
  146.                               <menuitem label="KML" oncommand="importMaps('kml');"/>
  147.                               <menuitem label="GPX" oncommand="importMaps('gpx');"/>
  148.                               <menuitem label=".minimap" oncommand="importMaps('minimap');"/>
  149.                     </menupopup>
  150.                     </menu>
  151.                     <menu label="&menuitem.options.export;" tooltiptext="&menuitem.options.export;">
  152.                     <menupopup>
  153.                               <menuitem label="KML" oncommand="exportMaps('kml');"/>
  154.                               <menuitem label="CSV" oncommand="exportMaps('csv');"/>
  155.                               <menuitem label="GPX" oncommand="exportMaps('gpx');"/>
  156.                               <menuitem label=".minimap" oncommand="exportMaps('minimap');"/>
  157.                     </menupopup>
  158.                     </menu>
  159.                 <menuitem id="" label="&menuitem.map.options;" tooltiptext="&menuitem.map.options;" oncommand="myOptions();" />
  160.                 <menuitem id="" label="&menuitem.map.help;" tooltiptext="&menuitem.map.help;" oncommand="minimapOpenUrl('help')" />
  161.                 <menuitem id="" label="&menuitem.map.homepage;" tooltiptext="&menuitem.map.homepage;" oncommand="minimapOpenUrl('home')" />
  162.                 <menuitem id="" label="&menuitem.map.release.notes;" tooltiptext="&menuitem.map.release.notes;" oncommand="minimapOpenUrl('release')" />
  163.                 <menuitem id="" label="&menuitem.map.donate;" tooltiptext="&menuitem.map.donate;" oncommand="minimapOpenUrl('donate')" />
  164.             </menupopup>
  165.         </toolbarbutton>
  166.         <spacer flex="1" />
  167.         <toolbarbutton id="dragzoom" class="geobut" label="" tooltiptext="&menuitem.map.dragzoom;" oncommand="extDragZoom()" /><spacer flex="1" />
  168.         <toolbarbutton id="zoomin" class="geobut" label="" tooltiptext="&menuitem.map.zoomin;" oncommand="extZoomIn()" /><spacer flex="1" />
  169.         <toolbarbutton id="zoomout" class="geobut" label="" tooltiptext="&menuitem.map.zoomout;" oncommand="extZoomOut()" /><spacer flex="1" />
  170.         <toolbarbutton id="zoominplus" class="geobut" label="" tooltiptext="&menuitem.map.zoominplus;" oncommand="extZoomInPlus()" /><spacer flex="1" />
  171.         <toolbarbutton id="zoomoutplus" class="geobut" label="" tooltiptext="&menuitem.map.zoomoutplus;" oncommand="extZoomOutPlus()" /><spacer flex="1" />
  172.         <toolbarbutton id="undo" class="geobut" label="" tooltiptext="&menuitem.map.undo;" oncommand="extUndo();" /> <spacer flex="1" />
  173.  
  174.         <toolbarbutton id="maptype" class="geobut" tooltiptext="Map Type" type="menu">
  175.             <menupopup>
  176.                 <menuitem id="" label="&menuitem.map.maptype;" tooltiptext="&menuitem.map.maptype;" oncommand="extMapType('Map');" type="radio" name="maptype"/> 
  177.                 <menuitem id="" label="&menuitem.map.sattype;" tooltiptext="&menuitem.map.sattype;" oncommand="extMapType('Satellite');" type="radio" name="maptype"/>
  178.                 <menuitem id="" label="&menuitem.map.hybtype;" tooltiptext="&menuitem.map.hybtype;" oncommand="extMapType('Hybrid');" type="radio" name="maptype"/>
  179.                 <menuitem id="" label="Google Terrain Map" tooltiptext="Google Terrain Map" oncommand="extMapType('Terrain');" type="radio"  name="maptype"/>
  180.                 <menuitem id="" label="Google Earth Map" tooltiptext="Google Earth Map" oncommand="extMapType('Earth');" type="radio"  name="maptype"/>
  181.             </menupopup>
  182.         </toolbarbutton>
  183.         <spacer flex="1" />
  184.         <toolbarbutton id="traffic" class="geobut" label="" tooltiptext="&menuitem.map.traffic;" oncommand="extTrafficToggle();" /><spacer flex="1" />
  185.         <toolbarbutton id="panadd" class="geobut" label="" tooltiptext="&menuitem.map.panaddress;" oncommand="extPanAdd()" /><spacer flex="1" />
  186.         <toolbarbutton id="homemap" class="geobut" label="" tooltiptext="&menuitem.map.maphome;" oncommand="extMapHome()" /><spacer flex="1" />
  187.         <toolbarbutton id="addAddress" class="geobut" label="" tooltiptext="&menuitem.map.add.main.tooltip;" type="menu" >
  188.             <menupopup>
  189.                 <menuitem id="" label="&menuitem.map.addaddress;" tooltiptext="&menuitem.map.addaddress;" oncommand="add_from_input()" /> 
  190.                 <menuitem id="" label="&menuitem.map.addcrosshair;" tooltiptext="&menuitem.map.addcrosshair;" oncommand="extAddCrosshair()" />
  191.                 <menuitem id="" label="&menuitem.map.addkml;" tooltiptext="&menuitem.map.addkml;" oncommand="addKmlUrlPrompt()" />
  192.             </menupopup>
  193.         </toolbarbutton>
  194.     </hbox>
  195.     <browser id="flock-maps-minibrowser" src="http://maps.stcstm.org/firefox_map_0_3_0.html" flex="1" style="border: 1px solid rgb(51, 51, 51); overflow: hidden" onclick="return window.parent.contentAreaClick(event, true);" />
  196.     <splitter collapse="before" resizeafter="farthest"></splitter>
  197.     
  198.     <listbox seltype="single" id="multiaddress-list" hidden="true" height="200" context="" onclick="multiAddressAdd(this.value);" >
  199.     </listbox>
  200.     <deck id="maps-deck" selectedIndex="0" height="200">
  201.         <vbox align="center" pack="center" id="maps_instructions" flex="1">
  202.             <description>&description.drop.address.or.link;</description>
  203.         </vbox>
  204.         <vbox flex="1" style="padding: 5px;">
  205.             <deck id="minimap-deck" selectedIndex="0" flex="1">
  206.                 <vbox flex="1"  style="border: solid 2px #fff; -moz-border-radius: 5px 5px 5px 0;" >
  207.                     <tree id="address_list" flex="1" datasources="" ref="" flags="dont-build-content" onkeypress="maps_keypress(event)" context="mapsContext" onselect="show()" ondraggesture="nsDragAndDrop.startDrag(event, addressObserver, true);">
  208.                       <treecols>
  209.                         <treecol id="idCol" class="address_list_cols" label="id" hidden="true" ignoreincolumnpicker="true" flex="1" />
  210.                         <treecol id="Name" class="address_list_cols" label="&treecol.name;" flex="1" sort="rdf:http://www.flock.com/rdf/maps#title" sortDirection="ascending" sortActive="true" style="font-style: italic" persist="width ordinal hidden"/>
  211.                         <splitter class="tree-splitter" />
  212.                         <treecol id="Address" class="address_list_cols" label="&treecol.address;" flex="1" hidden="true" sort="rdf:http://www.flock.com/rdf/maps#location" sortDirection="ascending" style="font-style: italic" persist="width ordinal hidden"/>
  213.                         <splitter class="tree-splitter" />
  214.                         <treecol id="Accuracy" class="address_list_cols" label="&treecol.accuracy;" flex="1" hidden="true" sort="rdf:http://www.flock.com/rdf/maps#accuracy" sortDirection="ascending" style="font-style: italic" persist="width ordinal hidden"/>
  215.                         <splitter class="tree-splitter" />
  216.                       </treecols>
  217.                 <template>
  218.                   <rule>
  219.                     <treechildren>
  220.                       <treeitem uri="rdf:*">
  221.                         <treerow properties="makeItClear">
  222.                           <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#id" />
  223.                           <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#title" />
  224.                           <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#location" />
  225.                             <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#accuracy" />
  226.                         </treerow>
  227.                       </treeitem>
  228.                     </treechildren>
  229.                   </rule>
  230.                 </template>
  231.             </tree>
  232.         </vbox>
  233.         <vbox flex="1" style="border: solid 2px #fff; -moz-border-radius: 5px 5px 5px 0;" >
  234.         <spacer flex="1" />
  235.         <grid>
  236.             <columns>
  237.                 <column flex="0"/>
  238.                 <column flex="1"/>
  239.             </columns>
  240.             <rows>
  241.                 <row>        
  242.                     <vbox flex="0">
  243.                         <hbox>
  244.                         <vbox>
  245.                         <spacer flex="1"/>
  246.                         <label value="&menuitem.directions.list.label.from;" style="color: #fff"/>
  247.                         <spacer flex="1"/>
  248.                         </vbox>
  249.                         <toolbarbutton type="menu" dir="reverse" id="directions-from-list" class="geobutc"
  250.         datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending">
  251.                             <menupopup>
  252.                                 <menuitem id="directions-from-list-default" label="&menuitem.directions.list.default;" style="font-weight: bold" oncommand="directionsTextboxFrom(this.value)"/>
  253.                                   <menuseparator />
  254.                             </menupopup>  
  255.                 <template>
  256.                     <rule>
  257.                           <menupopup>
  258.                             <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id"  label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location"  oncommand="directionsMove(this.id); directionsTextboxFrom(this.value)"/>
  259.                           </menupopup>
  260.                     </rule>
  261.                   </template>
  262.             </toolbarbutton>
  263.             </hbox>
  264.             </vbox>
  265.             <vbox flex="0">
  266.             <textbox id="directions-from-textbox" value="" flex="1"/></vbox>
  267.             </row>
  268.             <row>
  269.             <vbox flex="0">
  270.             <hbox>
  271.             <vbox>
  272.             <spacer flex="1"/><label value="&menuitem.directions.list.label.to;" style="color: #fff"/><spacer flex="1"/></vbox>
  273.             <toolbarbutton id="directions-to-list" type="menu" class="geobutc" dir="reverse"
  274.         datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending">
  275.                 <menupopup>
  276.                     <menuitem id="directions-to-list-default" label="&menuitem.directions.list.default;" style="font-weight: bold" oncommand="directionsTextboxTo(this.value)"/>
  277.                       <menuseparator /> 
  278.                 </menupopup>  
  279.                 <template>
  280.                     <rule>
  281.                           <menupopup>
  282.                             <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id"  label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location" oncommand="directionsMove(this.id); directionsTextboxTo(this.value)"/>
  283.                           </menupopup>
  284.                     </rule>
  285.                   </template>
  286.             </toolbarbutton>
  287.             </hbox>
  288.             </vbox>
  289.             <vbox flex="0">
  290.             <textbox id="directions-to-textbox" value="" flex="1"/></vbox>
  291.             </row>
  292.             <row>
  293.             <vbox flex="0">
  294.                 
  295.             <label value="&menuitem.directions.list.action;" style="color: #fff"/>
  296.             </vbox>
  297.             <vbox flex="0">
  298.             <hbox>    
  299.             <toolbarbutton id="preview" class="geobutc" tooltiptext="&menuitem.directions.list.preview;" oncommand="directionsDo('preview')"/>
  300.             <toolbarbutton id="share" class="geobutc" tooltiptext="&menuitem.directions.list.share;" oncommand="directionsDo('share')"/>
  301.             <toolbarbutton id="email" class="geobutc" tooltiptext="&menuitem.directions.list.email;" oncommand="directionsDo('email')"/>
  302.             <toolbarseparator />
  303.             
  304.             <toolbarbutton id="google" class="geobutc" tooltiptext="&menuitem.directions.list.google;" oncommand="directionsDo('google')"/>
  305.             <toolbarbutton id="yahoo" class="geobutc" tooltiptext="&menuitem.directions.list.yahoo;" oncommand="directionsDo('yahoo')"/>
  306.             <toolbarbutton id="microsoft" class="geobutc" tooltiptext="&menuitem.directions.list.microsoft;" oncommand="directionsDo('microsoft')"/>
  307.             </hbox>
  308.             </vbox>
  309.             </row>
  310.             </rows>
  311.             </grid>
  312.             <spacer flex="1" />
  313.         </vbox>
  314.         <vbox flex="1" style="overflow: auto; border: solid 2px #fff; -moz-border-radius: 5px 5px 5px 0;" >
  315.             <richlistbox id="kml-list" context="kmlContext" >
  316.             </richlistbox>
  317.             <spacer flex="1"/>
  318.             <description style="color: #fff;">&minimap.kml.label;</description>
  319.         </vbox>
  320.     </deck>
  321.   <hbox>
  322.     <tabs class="" >
  323.           <tab type="radio" class="minimapTabs" onclick="switchMinimapTabs('0')">
  324.             <label value="&minimap.tab.addresses;"/>
  325.           </tab>
  326.           <tab type="radio" class="minimapTabs" onclick="switchMinimapTabs('1')">
  327.             <label value="&minimap.tab.directions;"/>
  328.           </tab>
  329.           <tab type="radio" class="minimapTabs" onclick="switchMinimapTabs('2')">
  330.             <label value="&minimap.tab.kml;"/>
  331.           </tab>
  332.     </tabs>
  333.     <spacer flex="1" /></hbox>
  334.   </vbox>
  335.   <vbox flex="1">
  336.     <spacer flex="1" />
  337.         <hbox flex="1">
  338.             <spacer flex="1" />
  339.             <image src="chrome://minimap/skin/ajax-loader.gif" maxheight="22px" maxwidth="126px" />
  340.             <spacer flex="1" />
  341.         </hbox>
  342.     <spacer flex="1" />
  343.   </vbox>
  344.  </deck>
  345. </vbox>
  346. </window>
  347.